home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1824 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.7 KB

  1. Path: access4.digex.net!not-for-mail
  2. From: ell@access4.digex.net (Ell)
  3. Newsgroups: comp.lang.c++
  4. Subject: MI in C++
  5. Date: 13 Jan 1996 04:03:03 GMT
  6. Organization: The Universe
  7. Message-ID: <4d7atn$abs@news4.digex.net>
  8. NNTP-Posting-Host: access4.digex.net
  9. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  10.  
  11. From news3.digex.net!access2.digex.net!not-for-mail Fri Jan 12 23:00:11 1996
  12. Path: news3.digex.net!access2.digex.net!not-for-mail
  13. From: ell@access2.digex.net (Ell)
  14. Newsgroups: comp.object
  15. Subject: Re: Working without Multiple Inheritance
  16. Date: 7 Nov 1995 01:42:29 GMT
  17. Organization: Express Access Online Communications, Greenbelt, MD USA
  18. Lines: 19
  19. Message-ID: <47mdi5$b2h@news4.digex.net>
  20. References: <cpopetz-2610952243520001@jsr.isdn.uiuc.edu> <474q0t$5ql@newsbf02.news.aol.com>
  21. NNTP-Posting-Host: access2-2.digex.net
  22. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  23.  
  24. D. Erway (derway@ndc.com) wrote:
  25. :..
  26. : Yeah, I knew that.  I was responding to the guy who said you can only get
  27. : multiple class polymorphic behaviour on a single object by using full MI. 
  28. : That is wrong.
  29.  
  30. Right, I think MI comes into in to play with C++ when you want somewhat
  31. orthogonal behavior in the same abstraction.  The point is to inherit from
  32. the abstract aggregate formed from its abstract mixin components.  This
  33. can be the basis of swapping subsystems.  Inherit concrete subsystem
  34. aggregates, consisting of related, yet orthogonal classes, from an MI
  35. created abstract aggregate, declare a pointer to the abstract aggregate,
  36. and then you'll be able to swap the concrete inherited aggregates in and
  37. out during run-time as needed. 
  38.  
  39. See my article "The Beauty and Power of C++" in the May '95 issue of Object 
  40. magazine for a bit more on this.
  41.  
  42. Elliott
  43.  
  44.